package com.jxpanda.spring.module.auth.core.exception;

import com.jxpanda.spring.module.auth.core.user.OAuth2UserContext;

public class UserNotFoundException extends RuntimeException {

    public static final String DEFAULT_MESSAGE = "User not found";

    private final OAuth2UserContext oAuth2UserContext;


    public UserNotFoundException(OAuth2UserContext oAuth2UserContext) {
        super(DEFAULT_MESSAGE);
        this.oAuth2UserContext = oAuth2UserContext;
    }

    public UserNotFoundException(OAuth2UserContext oAuth2UserContext, String message) {
        super(message);
        this.oAuth2UserContext = oAuth2UserContext;
    }

    public UserNotFoundException(OAuth2UserContext oAuth2UserContext, String message, Throwable cause) {
        super(message, cause);
        this.oAuth2UserContext = oAuth2UserContext;
    }
}
